


# count = 0
# while (count < 9):
#    print ('The count is:', count)
#    count+=1
 
print ("Good bye!")

'''
continue 和 break 用法
'''
# i = 1
# while i < 10:   
#     i += 1
#     if i%2 > 0:     # 非双数时跳过输出
#         continue
#     print (i   )      # 输出双数2、4、6、8、10
 
# i = 1
# while 1:            # 循环条件为1必定成立
#     print (i  )       # 输出1~10
#     i += 1
#     if i > 10:     # 当i大于10时跳出循环
#         break



# var = 1
# while var == 1 :  # 该条件永远为true，循环将无限执行下去
#    num = input("Enter a number  :")
#    print ("You entered: ", num)
 
print ("Good bye!")


# for s in 'Python':     # 第一个实例
#    print("当前字母: %s" % s)
 
# fruits = ['banana', 'apple',  'mango']
# for fruit in fruits:        # 第二个实例
#    print ('当前水果: %s'% fruit)
 
print ("Good bye!")


fruits = ['banana', 'apple',  'mango']
print(range(len(fruits)))

for index in range(len(fruits)):
   print ('当前水果 : %s' % fruits[index])
 
print ("Good bye!")